﻿<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              FontFamily="Arial">

    <Paragraph TextAlignment="Center" Background="Green">Single line</Paragraph>
    <Paragraph TextAlignment="Center" Background="Blue">More than one<LineBreak />line</Paragraph>
    <Paragraph TextAlignment="Center" Background="Red">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur quam turpis, ultrices vitae hendrerit sit amet, iaculis nec dui.
        Donec tempus dui aliquet mi volutpat ullamcorper. Vivamus interdum odio et nibh laoreet quis condimentum erat placerat.
        Etiam mattis, nisl ac tincidunt tempus, neque ante elementum diam, sit amet hendrerit risus tellus vel mi. 
        Curabitur ligula est, tempor quis scelerisque sit amet, dignissim vel dolor. Quisque malesuada risus vehicula purus interdum ac laoreet tellus scelerisque. 
        Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam erat volutpat. Etiam interdum urna eget metus molestie non
        molestie massa ultrices. Duis in felis dolor, id aliquet nisl. Sed pharetra tempus dignissim. Suspendisse cursus lobortis leo non semper. Sed
        congue ligula at quam laoreet tempor quis nec orci. Praesent volutpat aliquam dui, pharetra volutpat lectus pharetra pulvinar.
    </Paragraph>
    <Paragraph TextAlignment="Center" Background="Yellow">
        <Figure HorizontalAnchor="ContentLeft" Width="100" Height="100" Background="Green">
            <Paragraph>Test figure</Paragraph>
        </Figure>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur quam turpis, ultrices vitae hendrerit sit amet, iaculis nec dui.
        Donec tempus dui aliquet mi volutpat ullamcorper. Vivamus interdum odio et nibh laoreet quis condimentum erat placerat.
        Etiam mattis, nisl ac tincidunt tempus, neque ante elementum diam, sit amet hendrerit risus tellus vel mi. 
        Curabitur ligula est, tempor quis scelerisque sit amet, dignissim vel dolor. Quisque malesuada risus vehicula purus interdum ac laoreet tellus scelerisque. 
        Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam erat volutpat. Etiam interdum urna eget metus molestie non
        molestie massa ultrices. Duis in felis dolor, id aliquet nisl. Sed pharetra tempus dignissim. Suspendisse cursus lobortis leo non semper. Sed
        congue ligula at quam laoreet tempor quis nec orci. Praesent volutpat aliquam dui, pharetra volutpat lectus pharetra pulvinar.
    </Paragraph>

    <Table>
        <Table.Columns>
            <TableColumn Width="Auto" />
            <TableColumn Width="Auto" />
        </Table.Columns>
        
        <TableRowGroup>
            <TableRow>
                <TableCell>
                    <Paragraph Background="Blue">First cell!</Paragraph>
                </TableCell>
                <TableCell >
                    <Paragraph Background="Red">Second cell!</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell ColumnSpan="2">
                    <Paragraph Background="Yellow">Third cell!</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>

    <Table>
        <Table.Columns>
            <TableColumn Width="Auto" />
            <TableColumn Width="Auto" />
        </Table.Columns>

        <TableRowGroup>
            <TableRow>
                <TableCell >
                    <Paragraph Background="Blue" TextAlignment="Center">First cell!</Paragraph>
                </TableCell>
                <TableCell >
                    <Paragraph Background="Red" TextAlignment="Center">Second cell!</Paragraph>
                </TableCell>
            </TableRow>
            <TableRow>
                <TableCell  ColumnSpan="2">
                    <Paragraph Background="Yellow" TextAlignment="Center">Third cell!</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>
    </Table>

</FlowDocument>
